package com.ztgf.order.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.order.models.bo.OrderBusinessContractBO;
import com.ztgf.order.models.bo.OrderContractCenterBO;
import com.ztgf.order.models.dto.OrderContractRelationDTO;
import com.ztgf.order.models.dto.OrderInfoDTO;
import com.ztgf.order.models.vo.OrderBusinessContractVO;
import com.ztgf.order.models.vo.OrderContractCenterVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单合同关系表映射
 *
 * @author chenyu.wang
 * @Date 2020-06-03 15:58:52
 */
@Mapper
public interface OrderContractRelationMapper extends BaseMapper<OrderContractRelationDTO> {

    /**
     * description: 个人中心我的合同
     * param: []
     * author: chenyu.wang
     * date: 2020-06-04
     * return: java.util.List<com.ztgf.order.models.vo.OrderContractRelationVO>
     */
    List<OrderContractCenterVO> queryMyContractList(Page<OrderContractCenterVO> page, @Param("item") OrderContractCenterBO bo,Integer contactType);

    OrderInfoDTO getOrderInfoByOrderId(Long orderId);

    /**
     * description: 后台管理系统交易合同列表
     * param: [page, businessContractBO]
     * author: chenyu.wang
     * date: 2020-07-09
     * return: java.util.List<com.ztgf.order.models.vo.OrderBusinessContractVO>
     */
    List<OrderBusinessContractVO> queryBusinessContractList(Page<OrderBusinessContractVO> page, @Param("item") OrderBusinessContractBO businessContractBO,Integer contactState);

    OrderInfoDTO getOrderInfoByContractId(Long contractId);
}
